﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StudentData
{
    class Person
    {
        string name;
        int? age;

        public Person(string name)
        {
            this.name = name;
        }

        public Person(string name, int? age)
        {
            this.name = name;
            this.age = age;
        }

        public override string ToString()
        {
            string toString;
            if (age == null)
            {
                toString = "No age info";
            }
            else
            {
                toString = this.name + " " + this.age;
            }
            return toString;
        }
    }
}